
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>添加优惠配置</title>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add">
        <input id="tid" name="tid" value="${distributionConfig.tid}" type="hidden">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>优惠类型：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                    <select class="select" name="discountsType">
                        <option value="1"  ${distributionConfig.discountsType==1?"selected":"" }>减少</option>
                        <option value="2"  ${distributionConfig.discountsType==2?"selected":"" }>减到</option>
                    </select>
				</span>
            </div>

        </div>



        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>优惠价格：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       value="<fmt:formatNumber value="${distributionConfig.discountsPrice/100}" pattern="#0.00" />"
                       placeholder="优惠价格" id="discountsPrice" name="discountsPrice">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>产品实体：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       value="${distributionConfig.productEntityName}"
                       placeholder="产品实体" id="productEntityName" name="productEntityName" onclick="showProductEntity();">
                <input type="hidden" class="input-text"
                       value="${distributionConfig.productEntityId}"
                       placeholder="产品实体" id="productEntityId" name="productEntityId">
            </div>
        </div>



        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" id="advertSubmit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<script type="text/javascript" src="/static/js/admin/distributionConfig/distributionConfig.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
